package cn.jtfadmin.base.lang.common.domain.dto;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 查询条件DTO
 *
 * @author akfh
 * @since 1.0
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
public class SpecConditionDTO implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 类型, eq, ge, gt, le, lt, like, likeLeft, likeRight, isNull, notNull,
     * isEmpty(string/collection), notEmpty(string/collection),
     * isEmptyOrNull(string/collection), notEmptyOrNull(string/collection)
     */
    protected String type;

    /**
     * 值
     */
    protected String value;

    /**
     * 字段名
     */
    protected String column;

    public SpecConditionDTO() {
    }

    public SpecConditionDTO(String type, String value, String column) {
        this.type = type;
        this.value = value;
        this.column = column;
    }
}
